package com.tqfframe.studydemo.myDubboRpc.core.util;

/**
 * 返回格式转换
 * Created by Tang-QiFeng on 2022/2/18
 */
public class TypeUtil {

    public  static Object typeChange(String type,String value){
        Object o;
        switch (type){
            case "java.lang.Integer" : o=Integer.valueOf(value);
                break;
            case "java.lang.Long" : o=Long.valueOf(value);
                break;
            default : o=value;
        }
        return o;
    }

}
